package com.shop.cereshop.app.dao.dl;

import com.shop.cereshop.app.dl.logic.domain.CareShopNewsForwardLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CareShopNewsForwardLogMapper {
    int deleteByPrimaryKey(Long forwardId);

    int insert(CareShopNewsForwardLog record);

    int insertSelective(CareShopNewsForwardLog record);

    CareShopNewsForwardLog selectByPrimaryKey(Long forwardId);

    int updateByPrimaryKeySelective(CareShopNewsForwardLog record);

    int updateByPrimaryKey(CareShopNewsForwardLog record);

    CareShopNewsForwardLog selectTime(@Param("buyerUserId") Long buyerUserId, @Param("newsId") Integer newsId,@Param("time") String time);

    Integer getForwardCountByBuyerUserId(Long buyerUserId);

    List<CareShopNewsForwardLog> getAllByUserid(Long buyerUserId);
}